package org.mzx.shortLink.Test;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.sql.Connection;
import java.sql.DriverManager;
@SpringBootTest()
public class DBTest {
    public static void main(String[] args) throws Exception {
        String url = "jdbc:mysql://192.168.187.129:3306/link?useSSL=false&serverTimezone=UTC";
        String user = "root";
        String pwd = "mzx20040517";

        Connection conn = DriverManager.getConnection(url, user, pwd);
        System.out.println("连接成功：" + (conn != null));
        conn.close();
    }
}
